
{% extends "base_site.html" %}  <!-- 继承 Django Admin 的基础模板 -->

{% block content %}
<h1>我的服务概览</h1>

<div class="card-container">
    <div class="card">
        <h3>个人信息</h3>
        <p>用户名: {{ user.username }}</p>
        <p>邮箱: {{ user.email }}</p>
    </div>

    <div class="card">
        <h3>入库报备</h3>
        <p>记录总数: {{ in_garage_count }}</p>
        <a href="{% url 'admin:vr_ingaragereport_changelist' %}" class="button">查看详情</a>
    </div>

    <div class="card">
        <h3>出库报备</h3>
        <p>记录总数: {{ out_garage_count }}</p>
        <a href="{% url 'admin:vr_outgaragereport_changelist' %}" class="button">查看详情</a>
    </div>

    <div class="card">
        <h3>寄钥匙</h3>
        <p>记录总数: {{ mail_key_count }}</p>
        <a href="{% url 'admin:vr_mailkey_changelist' %}" class="button">查看详情</a>
    </div>

    <div class="card">
        <h3>物品寄回</h3>
        <p>记录总数: {{ item_sentback_count }}</p>
        <a href="{% url 'admin:vr_itemsentback_changelist' %}" class="button">查看详情</a>
    </div>

    <div class="card">
        <h3>车辆维修</h3>
        <p>记录总数: {{ vehicle_maintenance_count }}</p>
        <a href="{% url 'admin:vr_vehiclemaintenance_changelist' %}" class="button">查看详情</a>
    </div>

    <div class="card">
        <h3>配钥匙</h3>
        <p>记录总数: {{ key_duplication_count }}</p>
        <a href="{% url 'admin:vr_keyduplication_changelist' %}" class="button">查看详情</a>
    </div>
</div>

{% endblock %}
